package com.parking.renters.exception;

import com.parking.common.core.exception.ParkingException;
import com.parking.renters.exceptionCode.RentersExceptionCode;
/**
 * StallException:出租客模块异常
 */
public class RentersException extends ParkingException {
    /**
     *
     * @param message:异常消息
     * @param code:响应表编号
     */
    public RentersException(String message, Integer code) {
        super(message, code);
    }
    /**
     *
     * @param rentersExceptionCode:出租客异常枚举对象
     */
    public RentersException(RentersExceptionCode rentersExceptionCode) {
        super(rentersExceptionCode.getMessage(), rentersExceptionCode.getCode());
    }
}
